X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=install%2Fisession.inc;h=05e7dc26c67a4f21e1fee08817cb41482e9fa703;hb=4a37a28c49bf900dcc370fd3f21186cedcd632c9;hp=8084317208d37d628abb8f42e620ca9e38a779ba;hpb=577328a5a3a3d5cd6e2252798a355fa20a8f591e;p=fa-stable.git diff --git a/install/isession.inc b/install/isession.inc index 80843172..05e7dc26 100644 --- a/install/isession.inc +++ b/install/isession.inc @@ -9,6 +9,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ +define('VARLIB_PATH', $path_to_root.'/tmp'); +define('VARLOG_PATH', $path_to_root.'/tmp'); + function output_html($text) { global $before_box, $Ajax, $messages; @@ -58,6 +61,15 @@ function html_cleanup(&$parms) function check_page_security($page_security) { } + +/* + Ensure file is re-read on next request if php caching is active +*/ +function cache_invalidate($filename) +{ + if (function_exists('opcache_invalidate')) // OpCode extension + opcache_invalidate($filename); +} //============================================================================ if (!isset($path_to_root)) {