Niko,How to disable KWF cache? In local development I'm tired of constantly reset the cache from the console =)
--
You received this message because you are subscribed to the Google Groups "Koala Framework Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to koala-framework...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Am 02.12.2014 01:04 schrieb "Artyom M" <psycho...@gmail.com>:
>
> >which cache do you mean?
> Cache in KWF.
> Files in \cache folder etc
> I mean I want not to clear-cache after each change in js, trl and other cached files.
There are a few different caches - you see them when calling clear-cache
In your case it's the assets cache
>
> >most caches can be cleared during development using clear-cache-watcher:
> >http://www.koala-framework.org/documentation/kwf_general_features/caching
> This command don't work in my WAMP:
Oh, windows.
That doesn't work currently. Sorry.
It could be implemented tough - but it's probably easier to run a virtual machine with linux.
Niko
>
> C:\OpenServer\domains\aviashelf1>php bootstrap.php clear-cache-watcher
> "ps" не является внутренней или внешней
> командой, исполняемой программой или пакетным файлом.
> inotifywait -e modify -e create -e delete -e move -e moved_to -e moved_from -r --monitor --exclude 'magick|\.nfs|\.git|.*\.kate-swp|~|/cache/|/log/|/temp/|data/index|benchmarklog|querylog|eventlog' C:\OpenServer\domains\aviashelf1 C:\OpenServer\domains\aviashelf1\kwf-lib
> "inotifywait" не является внутренней или внешней
> командой, исполняемой программой или пакетным файлом.
> exception 'Kwf_Exception' with message 'Command failed' in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Util\Proc.php:40
> Stack trace:
> #0 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action\Cli\Web\ClearCacheWatcherController.php(193): Kwf_Util_Proc->close()
> #1 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController->indexAction()
> #2 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Dispatcher\Standard.php(295): Kwf_Controller_Action->dispatch('indexAction')
> #3 C:\OpenServer\domains\aviashelf1\library\zend\1.10.7\Zend\Controller\Front.php(953): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
> #4 C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Controller\Front.php(142): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
> #5 C:\OpenServer\domains\aviashelf1\bootstrap.php(20): Kwf_Controller_Front->dispatch()
> #6 {main}
>
Is there any other way to disable cache? =)
--
Install and enable memcache.
In config add
server.memcache.host = localhost
Niko
--
428 Precondition Required | 32ms |
>Install and enable memcache.
>In config add
>server.memcache.host = localhost
Not working:
root@ubuntu:/var/www/portal1#
I'm now on 3.8 version."Clear-cache" and "build" commands not delete old files totally. Thats why I delete them by hands. I'm tired to do this in every change in kwf. Otherwise the changes will not affect =((
Also after build command I see loop problem with "error - wrong version" modal dialog (in FF and Chrome).
inotifywait -e modify -e create -e delete -e move -e moved_to -e moved_from -r --monitor --exclude 'magick|\.nfs|\.git|.*\.kate-swp|~|/cache/|/log/|/temp/|data/index|benchmarklog|querylog|eventlog|/build/|/Gruntfile.js' /var/www/portal1
sh: 1: inotifywait: not found
>do you get an error message?No errors at both commands.Clear-cache problem exists from 3.5 to 3.8 in Windows and Linux systems. That's why I created post "Project migration problem" - clear-cache didn't clear \cache folder and I saw white page. Only delete by hands helps me.
>you need to install inotifytools package.Installed now.Same error:root@ubuntu:/var/www/portal1# php bootstrap.php clear-cache-watcherclear-cache-watcher is not compatible with simple cache apc backendDo I need to disable APCu? =)
>clear-cache-watcher is the solution.It's not a solution, because:1. Not works on Windows
2. Clear-cache still does not work
3. A lot of work by hands to delete files if watcher is disablewhite screen problem resolve only by manual delete
Thx, Niko.In windows 8.1 x64 watchdog not install by pip. Error in attach txt.Installed by git.Also need to add one line in config.ini:whileUpdatingShowMaintenancePage = false
I don't need memcache now, isn't it?
Watcher starts normally. I did some changes to try it:c:\OpenServer\domains\aviashelf>php bootstrap.php clear-cache-watcherpython -u -m watchdog.watchmedo log --recursive --ignore-directories --ignore-patterns "**magick*;*.nfs*;*/.git/*;**.kate-swp;*~;*/cache/*;*/log/*;*/temp/*;*/data/index/*;*/benchmarklog;*/querylog;*/eventlog;*/build/*;*/Gruntfile.js" C:\OpenServer\domains\aviashelfMODIFY C:/OpenServer/domains/aviashelf/config.iniremoved config cacheAPC: error: http://aviashelf/kwf/util/apc/clear-cache <html><head><title>500 Internal Server Error</title>
>yes, but recommended. (especially on production server)I already heard about 3 cache types:1. Zend OPcache2. APCu3. Memcached
Can you explain how KWF uses every type of cache? Now I use 1 and 2 on production server.
>set the following to get a proper error message:>debug.error.log = falseMODIFY C:/OpenServer/domains/aviashelf/config.iniremoved config cacheAPC: error: http://aviashelf/kwf/util/apc/clear-cache <br /><b>Fatal error</b>: Call to undefined function apc_delete() in <b>C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Apc.php</b> on line <b>181</b><br />
But I don't see anything about APC in phpinfo() or php5.5.ini file....where else to look for?
--