# Disable Cache

**URL:** <https://discuss.pynq.io/t/disable-cache/7291>\
**Category:** Support\
**Created:** [July 18, 2024, 2:40pm UTC](https://discuss.pynq.io/t/disable-cache/7291 "2024-07-18T14:40:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lu\_Guosheng](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/lu_guosheng/32/6190_2.png) [@Lu\_Guosheng](https://discuss.pynq.io/u/Lu_Guosheng)\
**Post date:** [July 18, 2024, 2:40pm UTC](https://discuss.pynq.io/t/disable-cache/7291/1 "2024-07-18T14:40:31Z")

</div>

I tried to disable the cache but it didn’t work, why is that?  
The code is as follows:

from pynq import allocate  
import numpy as np  
Convblock\_w\_1 = allocate(shape=(16, 4, 3, 3), dtype=np.int16, cacheable=False)  
Convblock\_out\_1 = allocate(shape=(16, 432, 432), dtype=np.int16, cacheable=False)  
print(“Convblock\_w\_1 cacheable:”, Convblock\_w\_1.cacheable)  
print(“Convblock\_out\_1 cacheable:”, Convblock\_out\_1.cacheable)

The printed results are as follows:

Convblock\_w\_1 cacheable: True  
Convblock\_out\_1 cacheable: True

---

<div class="post-metadata">

**Author:** ![Lu\_Guosheng](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/lu_guosheng/32/6190_2.png) [@Lu\_Guosheng](https://discuss.pynq.io/u/Lu_Guosheng)\
**Post date:** [July 18, 2024, 2:46pm UTC](https://discuss.pynq.io/t/disable-cache/7291/2 "2024-07-18T14:46:16Z")

</div>

My pynq version is the latest 3.0.1.

I’d be very grateful for any help.

---

<div class="post-metadata">

**Author:** ![matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@matthew](https://discuss.pynq.io/u/matthew)\
**Post date:** [August 9, 2024, 3:20am UTC](https://discuss.pynq.io/t/disable-cache/7291/3 "2024-08-09T03:20:24Z")

</div>

Hi,  
I do not know why your command seems not to work. However, your command is not necessary as by default, `pynq.allocate` creates non-cacheable buffers. It is explained somewhere here:

# [FPGA Data Movement Using NumPy](https://discuss.pynq.io/t/fpga-data-movement-using-numpy/734)
