xcache.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* Copyright (C) 2009-2012 Laurent Destailleur <eldy@users.sourceforge.net>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * \file htdocs/admin/system/xcache.php
  19. * \brief Page administration XCache
  20. */
  21. require '../../main.inc.php';
  22. $langs->load("admin");
  23. if (!$user->admin) {
  24. accessforbidden();
  25. }
  26. $action = GETPOST('action', 'aZ09');
  27. /*
  28. * View
  29. */
  30. llxHeader();
  31. print load_fiche_titre("XCache", '', 'title_setup');
  32. print "<br>\n";
  33. if (!function_exists('xcache_info')) {
  34. print 'XCache seems to be not installed. Function xcache_info not found.';
  35. llxFooter();
  36. exit;
  37. }
  38. print 'Opcode cache XCache is on<br><br>'."\n\n";
  39. print $langs->trans("Split").': '.ini_get('xcache.count').' &nbsp; &nbsp; &nbsp; '.$langs->trans("Recommanded").': (cat /proc/cpuinfo | grep -c processor) + 1<br>'."\n";
  40. print $langs->trans("Size").': '.ini_get('xcache.size').' &nbsp; &nbsp; &nbsp; '.$langs->trans("Recommanded").': 16*Split<br>'."\n";
  41. print $langs->trans("xcache.cacher").': '.yn(ini_get('xcache.cacher')).'<br>'."\n";
  42. print $langs->trans("xcache.optimizer").': '.yn(ini_get('xcache.optimizer')).' (will be usefull only with xcache v2)<br>'."\n";
  43. print $langs->trans("xcache.stat").': '.yn(ini_get('xcache.stat')).'<br>'."\n";
  44. print $langs->trans("xcache.coverager").': '.yn(ini_get('xcache.coverager')).'<br>'."\n";
  45. // End of page
  46. llxFooter();
  47. $db->close();