Skip to content

Tag: caching

How to precompile php opcache using command line?

I’m trying to warm up opcache via opcache.file_cache feature using console command. My opcache.ini: before I start my php-fpm process I compile files by executing scrpt from clommand line: This script generates compiled files to specified (/tmp/.opcache) directory. Then I start php-fpm process, but no p…

Clear javascript source cache laravel 5.8

I create company profile website using laravel 5.8 and vue js for make it reactive, it’s not SPA(single page application) maybe we can call it hybrid, everything run well in local, after i modify javasacript locally then run a command yarn watch to compile and run my web again it runs well. let’s …

Laravel 5.3 – Clear config cache in shared hosting

Currently I’m working on small project that require me to host my laravel app on shared hosting (please ignore the reason why I didn’t use VPS to host my laravel project) and this hosting provider disable escapeshellarg() for security reason so I can’t use php artisan config:cache to clear c…

Class ‘Memcached’ not found in laravel

I am trying to run simple code of cache using memcache in my laravel project. I have added CACHE_DRIVER=memcached in my .env file. I have created folder of memcache in C drive and added a file memcache.exe in that, and run in cmd by opening it as administrator. my code in route is: when I run this route, i ge…

Yii2 : how to cache active data provider?

In my PostSearch model I have this code : my try, instead of above line return $dataProvider, would be this block of code: I would like to cache the result returned by ADP, based on the updated_at field. I mean I want to serve data from cache until some change is made. My code does not work, I mean caching

Default to Laravel File cache if redis is down

In the spirit of “chaos monkey” I’m trying to ensure that a laravel application keeps going even when the services it depends on are down. It uses a DB for primary storage, and a redis cache. What I’d like to do is have it automatically fall back to the file cache if and when redis fai…

Back Navigation Caching – IE

When I am running web application on IE 11, getting warning message as below: DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337 Same question is posted in: Form/JavaScript not working on IE 11 with error DOM7011 How to re…