Cache disable

80 views
Skip to first unread message

Artyom M

unread,
Dec 1, 2014, 7:19:04 AM12/1/14
to koala-fra...@googlegroups.com
Niko,

How to disable KWF cache? In local development I'm tired of constantly reset the cache from the console =)

Niko Sams

unread,
Dec 1, 2014, 7:32:24 AM12/1/14
to Koala Framework Dev
which cache do you mean?

most caches can be cleared during development using clear-cache-watcher:

On Mon, Dec 1, 2014 at 1:19 PM, Artyom M <psycho...@gmail.com> wrote:
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.

Artyom M

unread,
Dec 1, 2014, 7:04:30 PM12/1/14
to koala-fra...@googlegroups.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.

>most caches can be cleared during development using clear-cache-watcher:
This command don't work in my WAMP:

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}

Niko Sams

unread,
Dec 2, 2014, 1:08:50 AM12/2/14
to Koala Framework Dev


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}
>

Artyom M

unread,
Dec 2, 2014, 2:42:51 AM12/2/14
to koala-fra...@googlegroups.com
Is there any other way to disable cache? =)

Niko Sams

unread,
Dec 2, 2014, 12:34:33 PM12/2/14
to Koala Framework Dev
no - that's not possible.

it would slow down everything, you don't want that :D

On Tue, Dec 2, 2014 at 8:42 AM, Artyom M <psycho...@gmail.com> wrote:
Is there any other way to disable cache? =)

--

Artyom M

unread,
Dec 4, 2014, 2:40:08 AM12/4/14
to koala-fra...@googlegroups.com
In Linux Ubuntu:

root@ubuntu:/var/www/portal1# php bootstrap.php clear-cache-watcher
clear-cache-watcher is not compatible with simple cache apc backend

I use PHP 5.5, Zend Opcache and APCU.

Niko Sams

unread,
Dec 5, 2014, 2:04:06 AM12/5/14
to Koala Framework Dev

Install and enable memcache.

In config add
server.memcache.host = localhost

Niko

--

Niko Sams

unread,
Dec 6, 2014, 4:48:32 AM12/6/14
to Koala Framework Dev

Artyom M

unread,
Dec 11, 2014, 11:58:11 PM12/11/14
to koala-fra...@googlegroups.com
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).

Artyom M

unread,
Dec 11, 2014, 11:59:55 PM12/11/14
to koala-fra...@googlegroups.com
In loop problem I see many errors in console:

428 Precondition Required
 32ms

Artyom M

unread,
Dec 12, 2014, 2:38:33 AM12/12/14
to koala-fra...@googlegroups.com

>Install and enable memcache.

>In config add 
>server.memcache.host = localhost

Not working:

root@ubuntu:/var/www/portal1# php bootstrap.php clear-cache-watcher
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
exception 'Kwf_Exception' with message 'Command failed' in /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Util/Proc.php:40
Stack trace:
#0 /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Controller/Action/Cli/Web/ClearCacheWatcherController.php(227): Kwf_Util_Proc->close()
#1 /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Controller/Action.php(33): Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController->indexAction()
#2 /var/www/portal1/vendor/koala-framework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Kwf_Controller_Action->dispatch('indexAction')
#3 /var/www/portal1/vendor/koala-framework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#4 /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Controller/Front.php(139): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#5 /var/www/portal1/bootstrap.php(20): Kwf_Controller_Front->dispatch()
#6 {main}

root@ubuntu:/var/www/portal1#


Niko Sams

unread,
Dec 14, 2014, 10:23:49 AM12/14/14
to Koala Framework Dev
On Fri, Dec 12, 2014 at 5:58 AM, Artyom M <psycho...@gmail.com> wrote:
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 =((
do you get an error message?
 

Also after build command I see loop problem with "error - wrong version" modal dialog (in FF and Chrome).
that's probably related to the problem clear-cache not working correctly.

Niko

Niko Sams

unread,
Dec 14, 2014, 10:24:31 AM12/14/14
to Koala Framework Dev
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
you need to install inotifytools package.

Niko 

Artyom M

unread,
Dec 14, 2014, 6:26:34 PM12/14/14
to koala-fra...@googlegroups.com
>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-watcher
clear-cache-watcher is not compatible with simple cache apc backend

Do I need to disable APCu? =)

Niko Sams

unread,
Dec 15, 2014, 7:51:47 AM12/15/14
to Koala Framework Dev
On Mon, Dec 15, 2014 at 12:26 AM, Artyom M <psycho...@gmail.com> wrote:
>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.
so deleting manually helped and your problem is solved?
 

>you need to install inotifytools package.
Installed now.

Same error:
root@ubuntu:/var/www/portal1# php bootstrap.php clear-cache-watcher
clear-cache-watcher is not compatible with simple cache apc backend

Do I need to disable APCu? =)

no, you need memache
(installed + activated in config.ini)

Niko
 

Artyom M

unread,
Dec 17, 2014, 3:17:56 AM12/17/14
to koala-fra...@googlegroups.com
>so deleting manually helped and your problem is solved?
problem NOT solved... every change in web-app I do this:
1) clean build folder
2) php bootstrap.php build
3) clear folders in \cache 
4) php bootstrap.php clear-cache
5) (optionally) clear browser cache

Thats because old files in folders not delete after commands.

>no, you need memache
>(installed + activated in config.ini)
Installed by this article:

in config.ini enabled.

Now I see errors:

Fatal error: Class 'Memcache' not found in /var/www/portal1/vendor/koala-framework/koala-framework/Kwf/Util/SessionHandler.php on line 64

line 64:
$this->_memcache = new Memcache();

Niko Sams

unread,
Dec 19, 2014, 12:34:36 PM12/19/14
to Koala Framework Dev
that's because the php extension is missing.
we are using the php5-memcache, please install that.

Niko

Artyom M

unread,
Dec 23, 2014, 6:39:09 PM12/23/14
to koala-fra...@googlegroups.com
>problem NOT solved... every change in web-app I do this:
>1) clean build folder
>2) php bootstrap.php build
>3) clear folders in \cache 
>4) php bootstrap.php clear-cache
>5) (optionally) clear browser cache
Can you resolve this issue?

Niko Sams

unread,
Dec 24, 2014, 3:27:45 AM12/24/14
to Koala Framework Dev
clear-cache-watcher is the solution.
once you have that running it clears caches automatically.

now you only have to configure memcache correctly i think.

Niko 

Artyom M

unread,
Dec 24, 2014, 7:06:34 AM12/24/14
to koala-fra...@googlegroups.com
>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 disable
white screen problem resolve only by manual delete

Niko Sams

unread,
Dec 24, 2014, 7:41:48 AM12/24/14
to Koala Framework Dev
On Wed, Dec 24, 2014 at 1:06 PM, Artyom M <psycho...@gmail.com> wrote:
>clear-cache-watcher is the solution.

It's not a solution, because:
1. Not works on Windows
that is true currently.
problem is that clear-cache-watcher relies on inotifywait which is linux only.
probably that could do the job: https://github.com/thekid/inotify-win

you'll need to compile it manually though...

a nodejs based solution would be simpler to install, though I have not found a fast cross-platform solution.

(osx support would also be nice, https://github.com/emcrisostomo/fswatch or something could be used)
 
2. Clear-cache still does not work 
you need clear-cache *and* build
that's normal and intended. but nothing else should be needed.
 
3. A lot of work by hands to delete files if watcher is disable
white screen problem resolve only by manual delete
that can happen but should usually not. especially not during normal development

cheers, any merry Christmas!

Niko

Artyom M

unread,
Dec 25, 2014, 12:19:31 AM12/25/14
to koala-fra...@googlegroups.com
>problem is that clear-cache-watcher relies on inotifywait which is linux only.
>probably that could do the job: https://github.com/thekid/inotify-win
>you'll need to compile it manually though...
I compiled it well, but where to put this inotifywait.exe file? in root directory it not workig....
Maybe put it in PATH?

>you need clear-cache *and* build
>that's normal and intended. but nothing else should be needed.
Very often it doesn't help...

>cheers, any merry Christmas!
Thank you! I would like to wish you a very happy holiday =)
In Russia we celebrate Christmas on 7th of January ;)

Artyom M

unread,
Dec 25, 2014, 7:26:26 PM12/25/14
to koala-fra...@googlegroups.com
I put inotifywait.exe to C:\Windows\system32 and C:\Windows\sysWOW64 and got another error:

c:\OpenServer\domains\aviashelf>php bootstrap.php clear-cache-watcher
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' C:\OpenServer\domains\aviashelf
"\.nfs" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
exception 'Kwf_Exception' with message 'Command failed' in C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php:40
Stack trace:
#0 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action\Cli\Web\ClearCacheWatcherController.php(227): Kwf_Util_Proc->close()
#1 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController->indexAction()
#2 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Dispatcher\Standard.php(308): Kwf_Controller_Action->dispatch('indexAction')
#3 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#4 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Front.php(139): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#5 C:\OpenServer\domains\aviashelf\bootstrap.php(20): Kwf_Controller_Front->dispatch()
#6 {main}

Niko Sams

unread,
Dec 28, 2014, 3:57:36 PM12/28/14
to Koala Framework Dev
I think I found a better solution:

fast and supports windows.

I implemented a first prototype in watchmedo branch:

tested under linux only currently. Maybe you can give that a try...

Niko

Artyom M

unread,
Dec 30, 2014, 6:44:13 PM12/30/14
to koala-fra...@googlegroups.com
What I did:
1. Install python 2.7.9 x64
2. Install PyYAML 3.11 x64 for python 2.7
3. Install watchgod by command 'pip install watchdog'
4. Change lib in composer for Koala: dev-watchmedo
5. Composer update

watcher not working:
c:\OpenServer\domains\aviashelf>php bootstrap.php clear-cache-watcher
watchmedo shell-command --recursive --ignore-directories  --command 'echo ${watch_event_type} ${watch_src_path} ${watch_dest_path}'  --ignore-patterns "**magick*;*.nfs*;*/.git/*;**.kate-swp;*~;*/cache/*;*/log/*;*/temp/*;*/data/index/*;*/benchmarklog;*/querylog;*/eventlog;*/build/*;*/Gruntfile.js" C:\OpenServer\domains\aviashelf
usage: watchmedo-script.py [-h] [--version]
                           {tricks-from,tricks-generate-yaml,log,shell-command,auto-restart}
                           ...
watchmedo-script.py: error: unrecognized arguments: C:\OpenServer\domains\aviashelf
exception 'Kwf_Exception' with message 'Command failed' in C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php:48
Stack trace:
#0 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action\Cli\Web\ClearCacheWatcherController.php(343): Kwf_Util_Proc->close()
#1 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController->indexAction()
#2 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Dispatcher\Standard.php(308): Kwf_Controller_Action->dispatch('indexAction')
#3 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#4 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Front.php(139): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#5 C:\OpenServer\domains\aviashelf\bootstrap.php(22): Kwf_Controller_Front->dispatch()
#6 {main}

Next exception 'ErrorException' with message 'proc_get_status(): 3413 is not a valid process resource' in C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php:61
Stack trace:
#0 [internal function]: Kwf_Debug::handleError(2, 'proc_get_status...', 'C:\\OpenServer\\d...', 61, Array)
#1 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php(61): proc_get_status(Resource id #3413)
#2 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php(66): Kwf_Util_Proc->getStatus()
#3 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Proc.php(26): Kwf_Util_Proc->isRunning()
#4 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action.php(33): Kwf_Util_Proc->__destruct()
#5 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Action.php(33): Kwf_Controller_Action_Cli_Web_ClearCacheWatcherController->indexAction()
#6 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Dispatcher\Standard.php(308): Kwf_Controller_Action->dispatch('indexAction')
#7 C:\OpenServer\domains\aviashelf\vendor\koala-framework\zendframework1\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#8 C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Controller\Front.php(139): Zend_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Controller_Response_Http))
#9 C:\OpenServer\domains\aviashelf\bootstrap.php(22): Kwf_Controller_Front->dispatch()
#10 {main}

Niko Sams

unread,
Jan 3, 2015, 9:36:15 AM1/3/15
to Koala Framework Dev
Ok, not that easy to run that under windows...
but I have now a version that works for me (needs more polishing but you can try it for now=

update the watchmedo branch....

Niko

Niko Sams

unread,
Jan 7, 2015, 6:21:04 AM1/7/15
to Koala Framework Dev
I just merged the watchmedo branch, so current 3.8 does support clear-cache-watcher on windows+mac.

Niko

Artyom M

unread,
Jan 7, 2015, 9:29:33 AM1/7/15
to koala-fra...@googlegroups.com
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-watcher
python -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\aviashelf

MODIFY C:/OpenServer/domains/aviashelf/config.ini
removed config cache
    <head>
        <title>500 Internal Server Error</title>
    </head>
    <body>
        <h1>Error</h1>

                    An Error ocurred. Please try again later.
                    </body>
</html>


cleared apc config cache
cleared setup.php cache
handled event in 684.66ms
finished in 685.78ms


Error 500...is it normal work?
watchdog_pip.txt

Niko Sams

unread,
Jan 7, 2015, 12:47:45 PM1/7/15
to Koala Framework Dev
that is looking much better now!

On Wed, Jan 7, 2015 at 3:29 PM, Artyom M <psycho...@gmail.com> wrote:
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
correct.
 
I don't need memcache now, isn't it?
yes, but recommended. (especially on production server)
 
Watcher starts normally. I did some changes to try it:

c:\OpenServer\domains\aviashelf>php bootstrap.php clear-cache-watcher
python -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\aviashelf

MODIFY C:/OpenServer/domains/aviashelf/config.ini
removed config cache
    <head>
        <title>500 Internal Server Error</title>
Is http://aviashelf/ the correct url?

set the following to get a proper error message: 
debug.error.log = false

Niko

Artyom M

unread,
Jan 11, 2015, 9:36:44 PM1/11/15
to koala-fra...@googlegroups.com
>yes, but recommended. (especially on production server)

I already heard about 3 cache types:
1. Zend OPcache
2. APCu
3. 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 = false

MODIFY C:/OpenServer/domains/aviashelf/config.ini
removed config cache
<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 />
<html>
    <head>
        <title>500 Internal Server Error</title>
    </head>
    <body>
        <h1>Error</h1>

                    Errortype:<br />
            <pre></pre>

            <br />

            Message:<br />
            <pre>exception 'ErrorException' with message 'Call to undefined function apc_delete()' in C:\OpenServer\domains\aviashelf\vendor\koala-framework\koala-framework\Kwf\Util\Apc.php:181
Stack trace:
#0 [internal function]: Kwf_Setup::shutDown()
#1 {main}</pre>
                                    <p id="exception" style="display:none">czoyNDU6ImV4Y2VwdGlvbiAnRXJyb3JFeGNlcHRpb24nIHdpdGggbWVzc2FnZSAnQ2FsbCB0byB1bmRlZmluZWQgZnVuY3Rpb24gYXBjX2RlbGV0ZSgpJyBpbiBDOlxPcGVuU2VydmVyXGRvbWFpbnNcYXZpYXNoZWxmXHZlbmRvclxrb2FsYS1mcmFtZXdvcmtca29hbGEtZnJhbWV3b3JrXEt3ZlxVdGlsXEFwYy5waHA6MTgxClN0YWNrIHRyYWNlOgojMCBbaW50ZXJuYWwgZnVuY3Rpb25dOiBLd2ZfU2V0dXA6OnNodXREb3duKCkKIzEge21haW59Ijs=</p>            </body>
</html>


cleared apc config cache
cleared setup.php cache
handled event in 469.05ms
finished in 469.05ms


Why this error shows? I don't use APC/APCu in local development.

Niko Sams

unread,
Jan 12, 2015, 9:57:52 AM1/12/15
to Koala Framework Dev
On Mon, Jan 12, 2015 at 3:36 AM, Artyom M <psycho...@gmail.com> wrote:
>yes, but recommended. (especially on production server)

I already heard about 3 cache types:
1. Zend OPcache
2. APCu
3. 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 = false

MODIFY C:/OpenServer/domains/aviashelf/config.ini
removed config cache
<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 />
Seems apcu is not working correctly!
please check if it is enabled for the webserver (and not only cli)
and check if apc compatibility is enabled.

Niko

Artyom M

unread,
Jan 13, 2015, 8:40:48 AM1/13/15
to koala-fra...@googlegroups.com
But I don't see anything about APC in phpinfo() or php5.5.ini file....where else to look for?

Niko Sams

unread,
Jan 13, 2015, 11:55:33 AM1/13/15
to Koala Framework Dev
well, I guess exactly that is the problem...
it has to show up in phpinfo, else it's not installed correctly.

On Tue, Jan 13, 2015 at 2:40 PM, Artyom M <psycho...@gmail.com> wrote:
But I don't see anything about APC in phpinfo() or php5.5.ini file....where else to look for?

--

Artyom M

unread,
Jan 17, 2015, 9:38:06 AM1/17/15