Hooks not working iff im using @ob_start() |
It may be that you never flush it as CodeIgniter already buffers it's output. So you are getting double buffering.
https://github.com/bcit-ci/CodeIgniter/b...r.php#L947 But my recommendation are that you ignore this minify and enable gzip compression instead. https://github.com/bcit-ci/CodeIgniter/b...g.php#L420 If you aren't doing it on server level. (This is the recommended way!) If you still want it to work, with that slow preg_replace function. You need to fix your redirect(); and add a working exit; as they do work. If applied correctly. Do you have an example that dosen't work? You aren't using a caching server I guess? That mean you will be running that replace every time a user visit that page. |
Messages In This Thread |
Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-05-2020, 06:28 AM
RE: Hooks not working iff im using @ob_start() - by jreklund - 01-05-2020, 11:30 PM
RE: Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-06-2020, 07:26 AM
RE: Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-06-2020, 07:22 AM
RE: Hooks not working iff im using @ob_start() - by InsiteFX - 01-06-2020, 08:47 AM
RE: Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-06-2020, 08:58 AM
RE: Hooks not working iff im using @ob_start() - by InsiteFX - 01-07-2020, 09:21 AM
RE: Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-10-2020, 11:40 AM
RE: Hooks not working iff im using @ob_start() - by jreklund - 01-08-2020, 11:56 AM
RE: Hooks not working iff im using @ob_start() - by shailesh tripathi - 01-08-2020, 12:40 PM
|