Fabien Potencier dfde2f4e85 bug #3087 Extend opcache check if it is enabled (vosco88)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3087).

Discussion
----------

Extend opcache check if it is enabled

When trying to deploy October on shared hosting (www.websupport.sk) I received following error when accessing the frontend pages - ErrorException:> Zend OPcache API is restricted by "restrict_api" configuration directive.
Backend was working normally.
I propose the following change to check not only if the opcache_invalidate exists but also if opcache is enabled.
The change was also needed in octobercms files, but to correspond I am also proposing to add it directly to twig.

Commits
-------

6e68bd08 Extend opcache check if it is enabled
2019-07-12 09:09:49 +03:00
2019-06-30 14:48:27 +02:00
2019-06-18 17:35:16 +02:00
2019-07-12 09:09:42 +03:00
2019-06-30 15:21:28 +02:00
2019-05-14 07:20:38 +02:00
2019-06-18 17:36:05 +02:00
2019-06-30 14:48:27 +02:00
2019-06-30 14:48:27 +02:00
2019-06-28 17:37:46 +02:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://blackfire.io/docs/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%