[Free Module] Xtreme cache

Nulledoldmaster

Создатель
Регистрация
30 Май 2015
Сообщения
28
Реакции
21
Xtreme cache module hooks into actionDispatcher and Tries to serve the full HTML Page Prestashop Processes before it. The cache source is built upon previous requests, before sending it to the browser, via a new hook I introduced (you'll find the override in the module).



This heavily reduces response time and server work load.

Для просмотра ссылки Войди или Зарегистрируйся .



Here are some benchmark made with Apache Benchmark with 20 requests:

- Category page with100 products: * without cache: min = 2703, mean = 3445, median = 3474, max = 4841 * with cache: min = 605, mean = 666, median = 636, max = 962

- Home page, with slideshow and categories: * without cache: min = 368, mean = 651, median = 503, max = 1377 * with cache: min = 236, mean = 283, median = 266, max = 582

- Lengthy cms page: * without cache: min = 506, mean = 661, median = 542, max = 1262 * with cache: min = 379, mean = 396, median = 391, max = 438

- Lengthy product page: * without cache: min = 471, mean = 751, median = 755, max = 1024 * with cache: min = 314, mean = 345, median = 328, max = 566
Versione 1.0.0 does not provide configuration yet; it uses the file-system to store cached pages for 4 hours.

Next versions will improve on this.



Module available on Для просмотра ссылки Войди или Зарегистрируйся .



- Update 1.0.1

* Fixed bug with AJAX requests

* Introduced support for Guest-Checkout (need tests)

* Unistall () deletes all cached files

* Minor improvements



- Update 1.0.2

* Fixed incompatibilites with PHP version <5.5

* Minor improvements



- Update 1.0.3

* Take into account shop and language



- Update 1.0.5

* Uses Для просмотра ссылки Войди или Зарегистрируйся as caching with SQlite Engine Driver by Default (Seems to be the FASTEST)

* Filesystem, memcache, memcached, redis, apc, xcache available as cache drivers

* Hashing function takes into account type of device

* Deletes cache when Product / Category is Added / Deleted / Updated

* Contains an override to empty cache when you clear the Smarty cache

* Uses a high cache TTL (5 hours because is easy to clear cache)

* Minor improvements




- Update 1.0.5 + configuration (by Enrique Engblom)

* added configuration form



- Update 1.0.6

* fixes bug with guest checkout cart

* fixes incompatibility with Prestashop 1.5 about user device

Для просмотра ссылки Войди или Зарегистрируйся
 

Вложения

  • xtremecache 1.0.5.zip
    311 KB · Просмотры: 26
  • xtremecache 1.0.5 + configuration.zip
    523,2 KB · Просмотры: 21
  • xtremecache 1.0.6.zip
    472,7 KB · Просмотры: 56
Последнее редактирование:
Кто-нибудь уже пробовал?
 
Отписался в теме модуля на форуме prestashop. Скажу и здесь тогда уж )
После установки во фронтофисе получил белую страницу, и ошибку в логе [Tue Jun 30 12:27:01 2015] [error] [client 188.134.4.117] PHP Fatal error: Call to undefined method Context::getDevice() in /.../modules/xtremecache/xtremecache.php on line 170, referer: Для просмотра ссылки Войди или Зарегистрируйся

PHP 5.3, преста 1.5.6.2
 
Well, you have to take into account that the module is in the early stages
And it is expected there will be some problems
Anyway, I saw you got an answer and you can see that the module has been updated
Quote:
@Pirate Prestashop 1.5 is radically different from Prestashop 1.6 here. Try modifying the Controller class' method attached in the module with the following:

protectedfunction smartyOutputContent($content){
$this->context->cookie->write();Hook::exec('actionRequestComplete', array('controller'=> $this,'output'=> $content
));
$this->context->smarty->display($content);}
@nasos It worked on my local env, I'll test it more. Sorry.

So be patient the module will continue to receive updates!!!

Another thing
My recommendation is to update the version of your PHP to a minimum of 5.4
 
Последнее редактирование:
- Update 1.0.6

* fixes bug with guest checkout cart

* fixes incompatibility with Prestashop 1.5 about user device
 
Модуль из архива xtremecache 1.0.6.zip устанавливается как Xtreme cache Версия : 1.0.5 (может здесь собака порылась и в архиве не 1.0.6 версия?)
На PHP 5.4, преста 1.5.6.2 - Fatal error: Call to undefined method Media::deferInlineScripts() in D:\OpenServer\domains\presta\override\classes\controller\Controller.php on line 26
Отключил все переопределения - заработало
 
Последнее редактирование:
Модуль из архива xtremecache 1.0.6.zip устанавливается как Xtreme cache Версия : 1.0.5 (может здесь собака порылась и в архиве не 1.0.6 версия?)
На PHP 5.4, преста 1.5.6.2 - Fatal error: Call to undefined method Media::deferInlineScripts() in D:\OpenServer\domains\presta\override\classes\controller\Controller.php on line 26

Try modifying the Controller class' method attached in the module with the following:

protected function smartyOutputContent($content) {
$this->context->cookie->write();
Hook::exec('actionRequestComplete', array(
'controller' => $this,
'output' => $content
));
$this->context->smarty->display($content);
}
 
Thank you, this is marvelous! Especially after looking through prices on paid modules with similar functions :)
As I understood it doesn't caches logged in users pages. It this mandatory or you are planning to add this feature in future?
 
Not working this modul on PS 1.6.0.9 :(
 
Назад
Сверху