Commit Graph

17 Commits

Author SHA1 Message Date
konradSC 73bea2f815 File cache sync via curl (#2851)
* Add sendevent when using file caching

* Create clear_cache.lua

FS receives a command via curl to call this script which deletes the single cache entry or flushes the entire cache.

* Create file_cache.lua

This scripts monitors for custom events. When an event is processed it will send out a command via curl to other FS servers telling them to clear their cache. 

This must be called from conf/autoload_configs/lua.conf.xml
 <param name="startup-script" value="app/server/resources/memcache.lua"/>
2017-09-20 16:19:56 -06:00
FusionPBX 7c4e575483 Update cache.php 2017-09-02 09:56:30 -06:00
FusionPBX 5b40a0d5dc Update cache.php 2017-07-22 15:52:45 -06:00
FusionPBX c857ce7f69 Update cache.php 2017-07-22 13:18:03 -06:00
DigiDaz 98a184c835 Fixed scripts to get multiserver memcache working (#1795) 2016-08-04 11:40:36 -06:00
Harry G. Coin 91a92d8e5e \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05:00
mafoo e0fdf41320 WhitespaceClean-resources/classes
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 12:08:26 +00:00
Alexey Melnichuk 85ad1fc976 Change. Reuse same esl connection to send cache event and command.
Fix. Implicitly close esl connection after do cache command.
2015-12-24 13:19:53 +03:00
Mark Crane b68953e384 Use memcache flush in the new PHP class. 2015-01-16 08:25:54 +00:00
Mark Crane 44107c5d30 Remove an extra space in the event. 2015-01-16 04:16:56 +00:00
Mark Crane ce3b932116 Send a custom memcache event to FreeSWITCH. 2015-01-16 03:52:32 +00:00
Mark Crane 618626e97a Fix the string quotations and return on the method. 2015-01-15 19:33:27 +00:00
Mark Crane 783ecc762a Change the methods from private to public. 2015-01-15 19:24:54 +00:00
Mark Crane 2d62405e7e Add a missing bracket. 2015-01-15 19:22:39 +00:00
Mark Crane 93b22c2ec7 Get rid of this variable since its not being used. 2015-01-15 18:34:02 +00:00
Mark Crane d636119e23 Correct the methods in the class description. 2015-01-15 18:19:54 +00:00
Mark Crane 2d9c6769f6 Add the first version of the cache class. 2015-01-15 18:15:25 +00:00