Commit Graph

18 Commits

Author SHA1 Message Date
Damian Mooyman
4d278f1695 API Add cache_lifetime config
BUG Fix issue in test caching
Tests for 3.2 and php 5.6
2015-11-02 11:27:14 +13:00
Peter Thaleikis
429b61036e Checking if there is a version to avoid #11. 2015-07-23 22:56:26 +12:00
Mateusz Uzdowski
fd67399417 Optimise diff generation.
For 100 items, this change improves generation times on small diffs
(100s of bytes) 6-fold. The improvement deteriorates to about 4-fold on
diffs of 1kB.

This includes the 25% improvement from the removal of unnecessary
forTemplate calls - we pack the diffs into HTMLText and render them
later from a template anyway.
2015-03-30 11:29:33 +13:00
Mateusz Uzdowski
8a7d2ec9da NEW Refactor diff API and add managed limits.
Deprecate the getDiffedChanges method to get rid of confusing
fullHistory parameter. Add a getDiff method to fetch just a single diff
and a more versatile getDiffList method which allows specifying a limit.

We now also cap the amount of items coming from the diffing process
to a default value that we hope will result in generation times no
greater than a few seconds. This can be reconfigured by developers.
2015-03-30 11:28:42 +13:00
Damian Mooyman
094e3190df API Ability to globally enable / disable RSS feeds via config / siteconfig 2014-05-22 11:38:32 +12:00
Damian Mooyman
7f3adbf4d8 Disable caching in tests
Fixes #8
2014-05-22 09:53:49 +12:00
Damian Mooyman
47991567b5 API Added lock cool down to rate limiting 2014-04-30 15:40:51 +12:00
Damian Mooyman
241f0604b0 Namespaced filters
Changed default settings (disable lock_bypage and set lock_timeout to 5)
Updated docs
2014-04-30 12:31:18 +12:00
Damian Mooyman
a243a3510a API Better implementation of caching / rate limiting 2014-04-29 16:51:23 +12:00
Ingo Schommer
27bd513938 Fixed static visibility 2013-10-31 10:38:49 +01:00
Ingo Schommer
2d035a6e94 Page specific cache key, unit and functional tests
Added templates from CWP template to make the module
useful standalone outside of CWP.
2013-10-30 17:46:22 +01:00
Mateusz U
3ad4f401ee Merge pull request #3 from silverstripe-labs/pulls/transifex
Globalisation, transifex support
2013-10-29 13:47:19 -07:00
Ingo Schommer
8b4fdd31c3 Globalisation, transifex support 2013-10-24 23:33:20 +02:00
Sean Harvey
3a13a46a2d Add nofollow to RSS links to avoid bots crawling the feeds. 2013-10-24 10:15:22 +13:00
Mateusz Uzdowski
35e44e92eb Protect the allchanges from leaking protected information.
Add warnings.
2013-07-23 10:07:32 +12:00
Mateusz Uzdowski
dc5012f118 Cache the versioned feed to prevent DDOS. 2013-07-22 16:27:52 +12:00
Robert Curry
671bf57015 Show initial version in allchanges feed 2013-03-07 14:54:13 +13:00
Robert Curry
d9dd9311d0 Initial commit 2012-11-26 13:22:30 +13:00